/*
 * CatalogueInfo.java
 *
 * Created on April 15, 2007, 6:31 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package usyd.comp5348;

import java.io.Serializable;

/**
 *
 * @author david
 */
public class CatalogueInfo implements Serializable {
    public static final int UNDEFINED = -1;
    
    private int id;              // unique video catalogue id
    private String catNo;	    // unique identifier for a video
    private String title;	    // video title
    private String director;	    // video director (only 1 allowed)
    private String genre;	    // video genre (only 1 allowed)
    private float price;	        // video price
    
    public CatalogueInfo(String catNo, String title, String director, String genre, float price) { 
        this(UNDEFINED, catNo, title, director, genre, price);
    }
    
    public CatalogueInfo(int id, String catNo, String title, String director, String genre, float price) {
        this.setId(id);
        this.setCatNo(catNo);
        this.setTitle(title);
        this.setDirector(director);
        this.setGenre(genre);
        this.setPrice(price);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCatNo() {
        return catNo;
    }

    public void setCatNo(String catNo) {
        this.catNo = catNo;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}
